package cn.growthgate.fgo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.RowBounds;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;

import cn.growthgate.fgo.entity.Class;
import cn.growthgate.fgo.entity.Servant;

/**
 * <p>
 * 从者 Mapper 接口
 * </p>
 *
 * @author GrowthGate
 * @since 2019-05-20
 */
public interface ServantMapper extends BaseMapper<Servant> {

	@Select("select * from t_data_class where id = #{classId} limit 1")
	public Class getClass(Servant servant);

	public List<Servant> selectJoinCv(RowBounds rowBounds, @Param("ew") Wrapper<Servant> wrapper);

}
